home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000354_news@columbia.edu _Tue Jun 6 12:38:51 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id MAA13770
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 6 Jun 2000 12:38:50 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA10219
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 6 Jun 2000 12:38:49 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA18057
  10.     for kermit.misc@watsun.cc.columbia.edu; Tue, 6 Jun 2000 12:11:14 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: "Mr. Scott" <scott_davis@my-deja.com>
  13. Subject: Re: Transfer text files without a protocol - thank you
  14. Date: Tue, 06 Jun 2000 16:03:26 GMT
  15. Organization: Deja.com - Before you buy.
  16. Message-ID: <8hj7c0$5qu$1@nnrp1.deja.com>
  17. To: kermit.misc@columbia.edu
  18.  
  19. Frank,
  20.  
  21. Thanks a lot.  Using what you gave me as a baseline I constructed this
  22. script that works real well, and doesn't transfer extraneous
  23. characters, although extreme timing issues could still thwart things.
  24.  
  25. define unix-getfile {
  26.     set input echo off
  27.     set input silence 5
  28.     set input timeout-action proceed
  29.     clear
  30.     output {stty -echo\13}
  31.     pause 3
  32.     clear
  33.     log session \%1
  34.     output {cat \%1;read junk\13}
  35.     set input echo on
  36.     input -1 {\4}
  37.     set input echo off
  38.     close session
  39.     output {\13stty echo\13}
  40.     pause 2
  41.     clear
  42. }
  43.  
  44. By the way, is the only way to get characters read using INPUT into a
  45. variable to use \v(input).  And is there a way to use INPUT such that
  46. you say "input all characters possible without a timeout until the
  47. device buffer is empty"?  In other words, "read until the device buffer
  48. is empty"...
  49.  
  50.  
  51. Sent via Deja.com http://www.deja.com/
  52. Before you buy.